package com.zhengtoon.mctoon.conv.utils;

import java.io.Serializable;

/**
 * session信息bean
 *
 * @author liuzhenhua
 * @since 2017-05-09
 */
public class SessionInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    private String sessionId;// 前端会话id

    private String userId; // userId
    private String toonNo; // 北京通号
    private String certKey; // toonCode中解析的key

    private String authCode; // 授权页跳转后,oauth传递的临时授权码
    private String appToken; // 授权页跳转后,oauth传递的appToken

    private String accessToken; // 实名oauth 提供的accessToken
    private String refreshToken; // 实名oauth refreshToken

    private String createTime;
    private int tokenExpiredSeconds;
    private int refreshTokenExpiredSeconds;

    private String userName;// 查询的用户名称

    private String idNo;// 证件号

    private String mobile;// 手机号

    private String certificateType;// 证件类型

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getToonNo() {
        return toonNo;
    }

    public void setToonNo(String toonNo) {
        this.toonNo = toonNo;
    }

    public String getCertKey() {
        return certKey;
    }

    public void setCertKey(String certKey) {
        this.certKey = certKey;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getTokenExpiredSeconds() {
        return tokenExpiredSeconds;
    }

    public void setTokenExpiredSeconds(int tokenExpiredSeconds) {
        this.tokenExpiredSeconds = tokenExpiredSeconds;
    }

    public int getRefreshTokenExpiredSeconds() {
        return refreshTokenExpiredSeconds;
    }

    public void setRefreshTokenExpiredSeconds(int refreshTokenExpiredSeconds) {
        this.refreshTokenExpiredSeconds = refreshTokenExpiredSeconds;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public String getAppToken() {
        return appToken;
    }

    public void setAppToken(String appToken) {
        this.appToken = appToken;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCertificateType() {
        return certificateType;
    }

    public void setCertificateType(String certificateType) {
        this.certificateType = certificateType;
    }

    @Override
    public String toString() {
        return "SessionInfo{" +
                "sessionId='" + sessionId + '\'' +
                ", userId='" + userId + '\'' +
                ", toonNo='" + toonNo + '\'' +
                ", certKey='" + certKey + '\'' +
                ", authCode='" + authCode + '\'' +
                ", appToken='" + appToken + '\'' +
                ", accessToken='" + accessToken + '\'' +
                ", refreshToken='" + refreshToken + '\'' +
                ", createTime='" + createTime + '\'' +
                ", tokenExpiredSeconds=" + tokenExpiredSeconds +
                ", refreshTokenExpiredSeconds=" + refreshTokenExpiredSeconds +
                ", userName='" + userName + '\'' +
                ", idNo='" + idNo + '\'' +
                ", mobile='" + mobile + '\'' +
                ", certificateType='" + certificateType + '\'' +
                '}';
    }
}
